package com.lsa.google.trials;

public class X {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int offset = 0;
		int width = 7;
		boolean isCrossingPassed = true;
		
		for (int i = 0; i < width - 1; i++) {
			for (int j = 0; j < width; j++) 
			{
				if (j == offset)
				{
					System.out.print(isCrossingPassed ? "\\" : "/");
				}
				else if ( j == width - 1 - offset)
				{
					System.out.println(isCrossingPassed ? "/\n" : "\\\n");
					if (isCrossingPassed){
						++offset;
					}
					else{
						--offset;
					}
					if (offset == width / 2 )
					{
						isCrossingPassed = false;
						--offset;
					}
					break;
				}
				else
				{
					System.out.print(" ");
				}
			}
		}
	}
}
